<template>
	<view class="charge">
		<view class="top">
			<text class="toptext">充值金额</text>
			<view class="topinput">
				￥<input type="number" placeholder="0.00" />
			</view>
		</view>
		<view class="charge_1">
			<text class="title">选择充入佣金</text>
			<view class="charge_check">
				<view class="left">
					<image src="/static/index/yh.png" mode=""></image>
					<view class="text">
						<text>钱包佣金</text>
						<text class="num">￥980</text>
					</view>
				</view>
				<view class="right">
					<label>
						<checkbox checked disabled />
					</label>
				</view>
			</view>
		</view>
		<view class="charge_1">
			<text class="title">付款方式</text>
			<view class="charge_check">
				<view class="left">
					<image src="/static/index/yh1.png" mode=""></image>
					<view class="text">
						<text>银行转账</text>

					</view>
				</view>
				<view class="right">
					<label class="radio">
						<radio @click="changeradio(1)" :checked="radioShow === 1" />
					</label>
				</view>
			</view>
			<view class="bankinfo" v-if="radioShow == 1">
				<view class="info">
					银行名称：江苏**第一人民银行
				</view>
				<view class="info">
					银行卡号：4651465156156165165156
				</view>
				<view class="info">
					开户姓名：钱斐
				</view>
			</view>
			<view class="charge_check">
				<view class="left">
					<image src="/static/index/wx.png" mode=""></image>
					<view class="text">
						<text>微信转账</text>

					</view>
				</view>
				<view class="right">
					<label class="radio">
						<radio @click="changeradio(2)" :checked="radioShow === 2" />
					</label>
				</view>
			</view>
			<view class="payimg" v-if="radioShow == 2">
				<image src="../../static/index/cartgoods1.png" mode=""></image>
			</view>
			<view class="charge_check">
				<view class="left">
					<image src="/static/index/zfb.png" mode=""></image>
					<view class="text">
						<text>支付宝转账</text>

					</view>
				</view>
				<view class="right">
					<label class="radio">
						<radio @click="changeradio(3)" :checked="radioShow === 3" />
					</label>
				</view>
			</view>
			<view class="payimg" v-if="radioShow == 3">
				<image src="../../static/index/cartgoods1.png" mode=""></image>
			</view>

		</view>
		<view class="charge_1">
			<text class="title">支付凭证</text>
			<fjjImages :pageImgList="wximg" @getwximgurl="getimgurl" :imgCount="1" @addImg="editParkImg"
				@deleteImg="deleteImg"></fjjImages>
		</view>
		<view class="btn">
			确认充值
		</view>
	</view>
</template>

<script>
	import fjjImages from '@/components/fjj-images/fjj-images.vue'
	export default {
		components: {
			fjjImages
		},
		data() {
			return {
				radioShow: 1,
				wximg: []
			}
		},
		onLoad() {

		},
		methods: {
			getwximgurl(e) {
				this.wximg = e
			},
			changeradio(i) {
				this.radioShow = i
			},
			editParkImg(currentTempFilePath) {},
			deleteImg(index) {},
		}
	}
</script>

<style lang="scss">
	.charge {
		padding-bottom: 20rpx;

		.top {
			background: #fff;
			padding-bottom: 20px;

			.toptext {
				padding: 0 5%;
				line-height: 80px;
			}

			.topinput {
				display: flex;
				align-items: center;
				font-size: 20px;
				padding: 0 5%;

				input {
					margin-left: 5px;
					font-size: 20px;
					border-bottom: 1px solid #ccc;
				}
			}
		}

		.title {
			padding: 0 5%;
			line-height: 40px;
			font-size: 12px;
		}

		.charge_1 {
			background: #fff;
			margin-top: 20rpx;

			.bankinfo {
				font-size: 24rpx;
				padding: 10rpx 5%;
				padding-bottom: 0;

				.info {
					padding: 20rpx 0;
					border-bottom: 1px solid #efefef;
				}
			}

			.payimg {
				padding: 10px 0;

				image {
					width: 90%;
					margin-left: 5%;
				}
			}

			.charge_check {
				border-top: 1px solid #efefef;
				padding: 10px 10px;
				display: flex;
				justify-content: space-between;
				align-items: center;

				.left {
					display: flex;
					align-items: center;

					image {
						width: 70rpx;
						height: 70rpx;
					}

					.text {
						display: flex;
						flex-direction: column;
						font-size: 12px;
						margin-left: 10px;

						.num {
							color: #777;
						}
					}
				}
			}
		}

		.btn {
			background: #af3535;
			color: #fff;
			width: 80%;
			margin: 20rpx auto;
			text-align: center;
			height: 80rpx;
			line-height: 80rpx;
			border-radius: 10rpx;
		}
	}
</style>